<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<html>
<head>
    <meta charset="UTF-8">
    <title>企业所得税风险管控系统</title>
   <script type="text/javascript" src="js/jquery.min.js"></script>
</head>
<body>
<jsp:forward page="WEB-INF/view/index.jsp"></jsp:forward>
<h2>Hello World!</h2>
<input type="button" value="测试" id="test" />

<script>
    $("#test").click(function () {
//        $.ajax({url: "hello/hello1",
//            dataType:'json',
//            success: function(result){
//            $("#div1").html(result);
//        }});
        $.ajax({
            type: "post",
            url: "hello/hello1",
            dataType: "json",
            success: function (data) {
               console.log(data);
            },
            error: function (XMLHttpRequest, textStatus, errorThrown) {
                alert(errorThrown);
            }
        });
    });
</script>
</body>
</html>
